//
// This code is to be used for evaluation of the CS2J tool ONLY.
//
// This file was translated from C# to Java by CS2J (http://www.cs2j.com).
//
// For more information about CS2J please contact info@twigletsoftware.com
//
// Translated by CS2J (http://www.cs2j.com): 2013/1/12 14:27:24
//

package ms.sudoku.util;

import java.util.Random;

public class RandomHelper {
	private Random rand = new Random();

	public RandomHelper() {
	}

	public int getRandomNumber(int max) {
		return rand.nextInt(max);
	}

	public int getRandomNumber(int min, int max) {
		int mmin = Math.min(min, max);
		int mmax = Math.max(min, max);
		return rand.nextInt(mmax - mmin) + mmin;
	}

}
